package com.wyzz.hr.support;

import java.math.BigDecimal;
import java.util.*;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.wyzz.hr.pojo.Attendshift;
import com.wyzz.hr.pojo.Employee;

public class AttendDailyMemory {

	public AttendDailyMemory() {
		t5 = 0L;
		t0 = 0L;
		t1 = 0L;
		t2 = 0L;
		t3 = 0L;
		init();
	}

	private void init() {
		lateMinutes = new BigDecimal(0);
		earlyMinutes = new BigDecimal(0);
		leaveHours = new BigDecimal(0);
		leaveDays = new BigDecimal(0);
		leaveHoursMap = new HashMap();
		leaveDaysMap = new HashMap();
		overtimeHours = new BigDecimal(0);
		orHoursMap = new HashMap();
		absentHours = new BigDecimal(0);
		absentDays = new BigDecimal(0);
		oughtDutyHours = new BigDecimal(0);
		oughtDutyDays = new BigDecimal(0);
		id = UUID.randomUUID().toString();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public Date getOnDutyTime() {
		return onDutyTime;
	}

	public void setOnDutyTime(Date onDutyTime) {
		this.onDutyTime = onDutyTime;
	}

	public Date getOffDutyTime() {
		return offDutyTime;
	}

	public void setOffDutyTime(Date offDutyTime) {
		this.offDutyTime = offDutyTime;
	}

	public String getShiftId() {
		return shiftId;
	}

	public void setShiftId(String shiftId) {
		this.shiftId = shiftId;
	}

	public String getShiftName() {
		return shiftName;
	}

	public void setShiftName(String shiftName) {
		this.shiftName = shiftName;
	}

	public BigDecimal getLateMinutes() {
		return lateMinutes;
	}

	public void setLateMinutes(BigDecimal lateMinutes) {
		this.lateMinutes = lateMinutes;
	}

	public BigDecimal getEarlyMinutes() {
		return earlyMinutes;
	}

	public void setEarlyMinutes(BigDecimal earlyMinutes) {
		this.earlyMinutes = earlyMinutes;
	}

	public BigDecimal getLeaveHours() {
		return leaveHours;
	}

	public void setLeaveHours(BigDecimal leaveHours) {
		this.leaveHours = leaveHours;
	}

	public BigDecimal getOvertimeHours() {
		return overtimeHours;
	}

	public void setOvertimeHours(BigDecimal overtimeHours) {
		this.overtimeHours = overtimeHours;
	}

	public String getDisplayColor() {
		return displayColor;
	}

	public void setDisplayColor(String displayColor) {
		this.displayColor = displayColor;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public BigDecimal getAbsentHours() {
		return absentHours;
	}

	public void setAbsentHours(BigDecimal absentTimes) {
		absentHours = absentTimes;
	}

	public Date getExaminDate() {
		return examinDate;
	}

	public void setExaminDate(Date examinDate) {
		this.examinDate = examinDate;
	}

	public BigDecimal getOrigDutyHours() {
		return origDutyHours;
	}

	public void setOrigDutyHours(BigDecimal origDutyHours) {
		this.origDutyHours = origDutyHours;
	}

	public String getEmpDistinctNo() {
		return empDistinctNo;
	}

	public void setEmpDistinctNo(String empDistinctNo) {
		this.empDistinctNo = empDistinctNo;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

	public long getT1() {
		return t1;
	}

	public void setT1(long t1) {
		this.t1 = t1;
	}

	public long getT2() {
		return t2;
	}

	public void setT2(long t2) {
		this.t2 = t2;
	}

	public long getT3() {
		return t3;
	}

	public void setT3(long t3) {
		this.t3 = t3;
	}

	public long getT0() {
		return t0;
	}

	public void setT0(long t0) {
		this.t0 = t0;
	}

	public long getT5() {
		return t5;
	}

	public void setT5(long t5) {
		this.t5 = t5;
	}

	public Attendshift getShift() {
		return shift;
	}

	public void setShift(Attendshift shift) {
		this.shift = shift;
	}

	public Employee getEmpObj() {
		return empObj;
	}

	public void setEmpObj(Employee empObj) {
		this.empObj = empObj;
	}

	public BigDecimal getOughtDutyHours() {
		return oughtDutyHours;
	}

	public void setOughtDutyHours(BigDecimal oughtDutyHours) {
		this.oughtDutyHours = oughtDutyHours;
	}

	public BigDecimal getAbsentDays() {
		return absentDays;
	}

	public void setAbsentDays(BigDecimal absentDays) {
		this.absentDays = absentDays;
	}

	public BigDecimal getLeaveDays() {
		return leaveDays;
	}

	public void setLeaveDays(BigDecimal leaveDays) {
		this.leaveDays = leaveDays;
	}

	public BigDecimal getOughtDutyDays() {
		return oughtDutyDays;
	}

	public void setOughtDutyDays(BigDecimal oughtDutyDays) {
		this.oughtDutyDays = oughtDutyDays;
	}

	public Map getLeaveHoursMap() {
		return leaveHoursMap;
	}

	public void setLeaveHoursMap(Map leaveHoursMap) {
		this.leaveHoursMap = leaveHoursMap;
	}

	public Map getLeaveDaysMap() {
		return leaveDaysMap;
	}

	public void setLeaveDaysMap(Map leaveDaysMap) {
		this.leaveDaysMap = leaveDaysMap;
	}

	public Map getOrHoursMap() {
		return orHoursMap;
	}

	public void setOrHoursMap(Map orHoursMap) {
		this.orHoursMap = orHoursMap;
	}

	private Employee empObj;
	private String id;
	private String empId;
	private String empName;
	private String empDistinctNo;
	private Date examinDate;
	private String shiftId;
	private String shiftName;
	private Date onDutyTime;
	private Date offDutyTime;
	private BigDecimal oughtDutyHours;
	private BigDecimal oughtDutyDays;
	private BigDecimal lateMinutes;
	private BigDecimal earlyMinutes;
	private BigDecimal absentHours;
	private BigDecimal absentDays;
	private BigDecimal leaveHours;
	private BigDecimal leaveDays;
	private Map leaveHoursMap;
	private Map leaveDaysMap;
	private BigDecimal overtimeHours;
	private Map orHoursMap;
	private BigDecimal origDutyHours;
	private String displayColor;
	private String comments;
	private Attendshift shift;
	long t5;
	long t0;
	long t1;
	long t2;
	long t3;
}
